/*
 * Copyright
 */
package com.ztkool.examples.client1.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 类描述
 *
 * @author ztkool
 * @since 1.0.0
 */
@RestController
@RequestMapping("/test")
public class Client1Controller {

    @GetMapping("/test1")
    public String test1() {
        String time = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date());
        System.out.println(time);
        return time;
    }
}
